/*******************************************************************************
 * Copyright (c) 2004 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package de.devisnik.eidle.presentation;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.presentations.AbstractPresentationFactory;
import org.eclipse.ui.presentations.IStackPresentationSite;
import org.eclipse.ui.presentations.StackPresentation;

/**
 * @author ELEV
 *
 */
public class PresentationFactory extends AbstractPresentationFactory
{

    /**
     * {@inheritDoc}
     */
//    @Override
    public StackPresentation createEditorPresentation(Composite parent,
            IStackPresentationSite site)
    {
        return new Presentation(parent, site, false, false, SWT.HORIZONTAL
                | SWT.TOP);
    }

    /**
     * {@inheritDoc}
     */
//    @Override
    public StackPresentation createViewPresentation(Composite parent,
            IStackPresentationSite site)
    {
        return new Presentation(parent, site, false, false, SWT.HORIZONTAL
                | SWT.TOP);
    }

    /**
     * {@inheritDoc}
     */
//    @Override
    public StackPresentation createStandaloneViewPresentation(Composite parent,
            IStackPresentationSite site, boolean showTitle)
    {
        return new Presentation(parent, site, false, false, SWT.HORIZONTAL
                | SWT.TOP);
    }
}
